import time
from selenium.webdriver.common.by import By
from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
dirver=webdriver.Edge()
dirver.get('https://www.doubao.com/chat/?channel=microsoft&source=microsoft_db_14&type=daoh&theme=wangzjh')
aa=WebDriverWait(dirver,20,0.5).until(EC.presence_of_element_located((By.XPATH,'//*[@id="chat-route-layout"]/div/main/div/div/div[2]/div[1]/div/div[2]/div[2]/div[2]/div[2]/div[2]/div[2]/div[1]/div/button[1]/span')))
aa.send_keys(r'D:\Users\刘帅\Desktop\text.png')
